﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Warranty.Core.IService;
using FX.Core;
using Warranty.Core.Domain;

namespace Warranty.Frm
{
    public partial class GiaoDienChinh : Form
    {
        private readonly IStaffService _StaffSrv;
        public GiaoDienChinh()
        {
            InitializeComponent();
            _StaffSrv = IoC.Resolve<IStaffService>();
        }

        private void button3_Click(object sender, EventArgs e)
        {
            List<Staff> a = _StaffSrv.Get_All().ToList();
            foreach (var item in a)
            {
                MessageBox.Show(item.Name);
            }
            //Application.Exit();
        }
    }
}
